﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="directory.aspx.cs" Inherits="OTA.Notification.Web.Dictionary.directory" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../../Style/main.css" type="text/css" rel="stylesheet" />
    <script src="../../common/jquery-1.2.6.min.js"></script>

    <script src="../../common/ms/jquery.multiSelect.js" type="text/javascript"></script>

    <link href="../../common/ms/jquery.multiSelect.css" rel="stylesheet" type="text/css" />

    <script>
//    	    $(document).ready( function() {

//				$.getJSON('?action=dic', function(data){
//				    
//				    $.each(data.data, function(i, item){
//				    
//				        $("<option value=" + item.code + ">" + item.name +"</option>").appendTo("#selectType"); 
//				        
//				    });
//				    
//				    $("#selectType").multiSelect({ oneOrMoreSelected: '*' });
//				

//				});
//				
//			});
    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="background-color: #f4f4f4; line-height: 35px;">
        Root<asp:Literal ID="Literal2" runat="server"></asp:Literal>
    </div>
    <div class="div_ct">
        <table width="100%">
            <tr>
                <td>
                </td>
                <td>
<%--                    <select id="selectType" name="selectTypeValue[]" multiple="multiple" size="5">
                        <option value=""></option>
                    </select>--%>
                </td>
            </tr>
            <tr>
                <td>
                    TYPE
                </td>
                <td>
                    <asp:DropDownList ID="ddltype" runat="server">
                        <asp:ListItem Value="H">Hotel</asp:ListItem>
                        <asp:ListItem Value="P">Pkg</asp:ListItem>
                        <asp:ListItem Value="Z">Common</asp:ListItem>
                        <asp:ListItem Value="V">Veh</asp:ListItem>
                        <asp:ListItem Value="I">Ins</asp:ListItem>
                        <asp:ListItem Value="A">Air</asp:ListItem>
                        <asp:ListItem Value="C">Cruise</asp:ListItem>
                        <asp:ListItem Value="Message">Message</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    PARENT_CODE
                </td>
                <td>
                    <asp:TextBox ID="txtpcode" runat="server" MaxLength="50" ReadOnly="True"></asp:TextBox>
                    (父级CODE)
                </td>
            </tr>
            <tr>
                <td>
                    CODE
                </td>
                <td>
                    <asp:TextBox ID="txtcode" runat="server" MaxLength="50"></asp:TextBox>
                    (子级CODE)
                </td>
            </tr>
            <tr>
                <td>
                    NAME
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    en-us：
                </td>
                <td>
                    <asp:TextBox ID="txten" runat="server" MaxLength="100" Width="272px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right">
                    zh-cn：
                </td>
                <td>
                    <asp:TextBox ID="txtcn" runat="server" MaxLength="100" Width="269px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    VALUE
                </td>
                <td>
                    <asp:TextBox ID="txtvalue" runat="server" MaxLength="10"></asp:TextBox>
                    (整数)
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnsave" runat="server" Text="新增" OnClick="Button1_Click" CssClass="button" />
                    &nbsp;
                    <asp:Button ID="btndel" runat="server" OnClick="btndel_Click" Text="删除" Visible="False" CssClass="button" />
                </td>
                <td>
                    <asp:HiddenField ID="hidid" runat="server" Value="0" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    1、TYPE、 PARENT_CODE 、VALUE 数据库内不可同时重复；<br />
                    2、如果CODE不为空，则TYPE必为空，任何选择均无效；<br />
                    3、新增情况下，PARENT_CODE不可修改；
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
